class Resume {
    constructor(obj) {
        this.name = obj.body.name;
        this.educationId = obj.body.educationId;
        this.position = obj.body.position;
        this.email = obj.body.email;
        this.phone = obj.body.phone;
        this.college = obj.body.college;
        this.studyingTime = obj.body.studyingTime;
        this.major = obj.body.major;
        this.professional = obj.body.professional;
        this.projExperience = obj.body.projExperience;
        this.workExperience = obj.body.workExperience;
    }

    check() {
        if (!this.name || !this.educationId || !this.position || !this.email || !this.phone || !this.college || !this.studyingTime || !this.major || !this.professional || !this.projExperience || !this.workExperience) {
            return { msg: '参数错误' };
        }
        return { success: true };
    }
}

module.exports = Resume;